import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.config.productionTip = false
Vue.prototype.$http = axios
Vue.prototype.formatDate = function(longDateStr) {
	if(longDateStr && longDateStr.length>15){
		var shortDate = longDateStr.substring(5, 10) + "   " + longDateStr.substring(11, 16);
		return shortDate;
	}else{
		return longDateStr;
	}
	
}
Vue.use(ElementUI);
new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')
